/**
 * Created by Wing on 2017/6/10.
 */
$(function () {
    $(".overlay").click(function () {
        tohideStudyList();
    });
});
$.ajax({
    url:"/memorypalace/study/getstudylist.action",
    dataType:"json",
    success:function (studyLists) {
        console.log(studyLists);
        var content = new Vue({
            el:".main",
            data:{studyLists:studyLists},
            methods:{
                editStudyList:function (id) {
                    toshowStudyList();
                },
                deleteStudyList:function (id) {
                    toshowStudyList();
                }
            }
        });
    }
});
var toshowStudyList = function () {
    $("#studyListInfo").show();
}
var tohideStudyList = function () {
    $("#studyListInfo").hide();
}